<?php
//mysql_connect("localhost","wanzai_mylibrary","881006");
mysql_connect("127.0.0.1","root","");
mysql_select_db("wanzai_mylibrary");
mysql_query('SET NAMES UTF8');
if($_REQUEST['key']!=null){
$sql=mysql_query("SELECT * FROM student WHERE S_Num LIKE '%".$_REQUEST['key']."%'");
}
//$sql=mysql_query("select * from book");

	while($e=mysql_fetch_assoc($sql))
			$output[]=$e;
print(json_encode($output));
mysql_close();
?>

